//
//  UIView+Extension.h
//  Practice
//
//  Created by yons on 14.8.20.
//  Copyright © 2020 yons. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extension)

/// 背景色
/// @param backgroundColor 颜色
+ (UIView *)viewWithBackgroundColor:(UIColor *)backgroundColor;

/// 背景色+剪切半径
/// @param backgroundColor 背景色
/// @param radius 剪切半径
+ (UIView *)viewWithBackgroundColor:(UIColor *)backgroundColor radius:(CGFloat)radius;

/// 背景色+剪切半径+边框宽度+边框颜色
/// @param backgroundColor 背景色
/// @param radius 剪切半径
/// @param borderWidth 边框宽度
/// @param borderColor 边框颜色
+ (UIView *)viewWithBackgroundColor:(UIColor *)backgroundColor radius:(CGFloat)radius borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor;

@end

NS_ASSUME_NONNULL_END
